package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 专辑售票信息
 * @author gzx
 */

@Data
@Entity
@Table(name = "ALBUM_SAL_TICKET")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AlbumSalTicket implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "ALBUM_SAL_TICKET_SEQ")
	@SequenceGenerator(name = "ALBUM_SAL_TICKET_SEQ", allocationSize = 1, sequenceName = "ALBUM_SAL_TICKET_SEQ")
	private Long id;
	@Column(name = "SAL_TICKET_ID")
	private Long salTicketId; // 实体票ID
	@Column(name = "COOPERATOR_ID")
	private Long cooperatorId; // 售票合作方编号
	@Column(name = "ALBUM_ID")
	private Long albumId; // 专辑ID
	@Column(name = "SAL_TICKET_PRICE")
	private String salTicketPrice; // 专辑售卖价格
	@Column(name = "SAL_STARTTIME")
	private String salStartTime; // 售卖开始时间
	@Column(name = "SAL_ENDTIME")
	private String salEndTime; // 售卖结束时间
	@Column(name = "ON_OR_OFF")
	private Integer onOrOff; // 启用或禁用(0-禁用，1-启用)

	@Transient
	private String cooperatorName;// 售票合作方名称
	

}
